<%@page import="java.util.ArrayList"%>
<%@page import="com.mconnect.msurvey.model.SurveyPlan"%>
<%@page import="com.mconnect.msurvey.controller.PlanManager"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Set"%>
<%@page import="java.util.HashSet"%>
<%@page import="com.mconnect.msurvey.controller.UserManager"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Admin Panel</title>
<link rel="stylesheet" type="text/css"
	href="resources/css/search_grid_style.css" />
<script src="js/jQuery/ui/jquery.ui.datepicker.js"></script>
<script type="text/javascript">
	$(function() {
		$("#datepicker1Sum").datepicker();
		$("#datepicker2Sum").datepicker();

		$('#choosePlanSum').click(function() {

			var dateFrom = $("#datepicker1Sum").val();
			var dateTo = $("#datepicker2Sum").val();
			$.get('reports/summaryCostReportContent.jsp', {
				dateFrom : dateFrom,
				dateTo : dateTo
			}, function(content) {
				$('#contentSummary').html(content);

				return false;
			});
		});

	});
</script>
</head>
<body>
	<%
		PlanManager pM = new PlanManager();
		List<SurveyPlan> planList = new ArrayList<SurveyPlan>();
		planList = pM.getPlanList();
	%>
	<center>
		<table style="margin-top: 30px; width: 600px;">
			<tr>
				<td style="width: 120px;">Data początkowa</td>
				<td><input type="text" id="datepicker1Sum"
					style="width: 110px;"></td>
				<td>Data końcowa</td>
				<td><input type="text" id="datepicker2Sum"
					style="width: 110px;"></td>
				<td><input type="submit" value="Wyszukaj"
					style="width: 100px; height: 30px;" id="choosePlanSum"></td>
			</tr>
		</table>

		<div id="contentSummary">
		
		</div>
	</center>

</body>
</html>